#import "systlog.h"

@implementation Syslog : Object

- (id) init {
  if (self = [super init]) {
    openlog("sunkbdd", LOG_PID, LOG_DAEMON);
  }

  return self;
}

- (void) syslog: (char *) err_str {
  syslog(LOG_DAEMON | LOG_ERR, err_str);
}

- (void) dealloc {
  closelog();
}
@end
